Skip to content

Add raspihats switch platform#7665

Merged
balloob merged 1 commit into
home-assistant:devfrom
raspihats:raspihats_switch
Jun 5, 2017
Merged

Add raspihats switch platform#7665
balloob merged 1 commit into
home-assistant:devfrom
raspihats:raspihats_switch

Conversation

@florincosta
Copy link
Copy Markdown
Contributor

@florincosta florincosta commented May 20, 2017

Description:

The raspihats switch platform allows you to control the digital outputs of your raspihats boards.

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#2574

Example entry for configuration.yaml (if applicable):

switch:
  - platform: raspihats
    i2c_hats:
      - board: DI6acDQ6rly
        address: 0x60
        channels:
          - index: 0
            name: Fan Office
            invert_logic: true
            initial_state: true
          - index: 1
            name: Light Office

Checklist:

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@fabaff
Copy link
Copy Markdown
Member

fabaff commented May 20, 2017

Successor of #7639.

@balloob
Copy link
Copy Markdown
Member

balloob commented Jun 5, 2017

Nice 🐬 👍

@balloob balloob merged commit 87da2ff into home-assistant:dev Jun 5, 2017
@balloob balloob mentioned this pull request Jun 16, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Sep 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants